import { Controller } from 'egg';
import { Result } from '../util/result';
// import MsgEnum from '../util/msgEnum';

export default class TalentController extends Controller {
  public async allTalents() {
    const { ctx } = this;
    const res = await ctx.model.Talent.findAll({
      include: [
        {
          model: ctx.model.ApplicationArea,
        },
        {
          model: ctx.model.TalentClassfication,
        },
      ],
    });

    ctx.body = new Result(res);
  }
}
